﻿using System;
using System.Windows;

namespace TestRunner 
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App
    {
        internal static LocalSettings Settings = LocalSettings.LoadSettings();

        protected override void OnStartup(StartupEventArgs e) 
        {
            base.OnStartup(e);
        }

        internal static void ChangeTheme(Uri themeUri)
        {
            Current.Resources.MergedDictionaries.Clear();
            var themeDictionary = LoadComponent(themeUri) as ResourceDictionary;
            Current.Resources.MergedDictionaries.Add(themeDictionary);
        }
    }
}
